import request from "../utils/request.js";

/**
 * @description: 根据用户id获取全部的达人主页信息
 * @return {object}
 */
export function authorInfoByUserId(params) {
  return request({
    url: '/merchant/merchantAuthor/authorInfoByUserId',
    method: 'get',
    data: params
  })
}

/**
 * @description: 检测口令是否可用
 * @return {object}
 */
export function checkCode(params) {
  return request({
    url: '/merchant/merchantAuthor/checkCode',
    method: 'get',
    data: params
  })
}

/**
 * @description: 应用端添加达人主页
 * @return {object}
 */
export function createAuthorHomeInfo(params) {
  return request({
    url: '/merchant/merchantAuthor/createAuthorHomeInfo',
    method: 'post',
    data: params
  })
}

/**
 * @description: 更新达人主页信息
 * @return {object}
 */
export function merchantAuthorEdit(params) {
  return request({
    url: '/merchant/merchantAuthor/merchantAuthorEdit',
    method: 'post',
    data: params
  })
}

/**
 * @description: 删除主页
 * @return {object}
 */
export function merchantAuthorDelete(params) {
  return request({
    url: '/merchant/merchantAuthor/merchantAuthorDelete',
    method: 'post',
    data: params
  })
}

/**
 * @description: 根据用户id获取全部的口令
 * @return {object}
 */
export function codeByUserId(params) {
  return request({
    url: '/merchant/merchantAuthor/codeByUserId',
    method: 'post',
    data: params
  })
}

/**
 * @description: 设置达人口令和展示的类目
 * @return {object}
 */
export function updateCodeLimitAuthor(params) {
  return request({
    url: '/merchant/merchantAuthor/updateCodeLimitAuthor',
    method: 'post',
    data: params
  })
}

/**
 * @description: 设置达人口令和展示的类目
 * @return {object}
 */
 export function createCode(params) {
  return request({
    url: '/merchant/merchantAuthor/createCode',
    method: 'post',
    data: params
  })
}

/**
 * @description: 删除口令
 * @return {object}
 */
export function deleteCode(params) {
  return request({
    url: '/merchant/merchantAuthor/deleteCode',
    method: 'post',
    data: params
  })
}

/**
 * @description: 创建作品专辑
 * @return {object}
 */
export function createArtworksAlbum(params) {
  return request({
    url: '/artworks/createArtworksAlbum',
    method: 'post',
    data: params
  })
}

/**
 * @description: 更新作品专辑
 * @return {object}
 */
export function updateArtworlsAlbum(params) {
  return request({
    url: '/artworks/updateArtworlsAlbum',
    method: 'post',
    data: params
  })
}

/**
 * @description: 删除作品专辑
 * @return {object}
 */
export function deleteArtworlsAlbum(params) {
  return request({
    url: '/artworks/deleteArtworlsAlbum',
    method: 'post',
    data: params
  })
}

/**
 * @description: 根据作品分类和达人主页id获取专辑
 * @return {object}
 */
export function findAlbumByAuthorIdAndTypeId(params) {
  return request({
    url: '/artworks/findAlbumByAuthorIdAndTypeId',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据主页id和作品类型去获取作品列表
 * @return {object}
 */
export function findAllArtworksList(params) {
  return request({
    url: '/artworks/findAllArtworksList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据主页id和作品类型去获取作品列表
 * @return {object}
 */
export function findAllArtworksListByHomePage(params) {
  return request({
    url: '/artworks/findAllArtworksListByHomePage',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取创作者全部的专辑和专辑中的作品
 * @return {object}
 */
 export function findAllAlbum(params) {
  return request({
    url: '/artworks/findAllAlbum',
    method: 'get',
    data: params
  })
}

/**
 * @description: 批量更新专辑排序
 * @return {object}
 */
export function batchAlbumSort(params) {
  return request({
    url: '/artworks/batchAlbumSort',
    method: 'post',
    data: params
  })
}

/**
 * @description: 批量置顶或取消置顶操作
 * @return {object}
 */
export function batchUpdateArtworks(params) {
  return request({
    url: '/artworks/batchUpdateArtworks',
    method: 'post',
    data: params
  })
}

/**
 * @description: 批量删除
 * @return {object}
 */
export function batchDeleteArtworks(params) {
  return request({
    url: '/artworks/batchDeleteArtworks',
    method: 'post',
    data: params
  })
}

/**
 * @description: 批量排序
 * @return {object}
 */
export function batchSortArtworks(params) {
  return request({
    url: '/artworks/batchSortArtworks',
    method: 'post',
    data: params
  })
}

/**
 * @description: 批量复制作品
 * @return {object}
 */
export function batchCopyArtworks(params) {
  return request({
    url: '/artworks/batchCopyArtworks',
    method: 'post',
    data: params
  })
}

/**
 * @description: 会员和收益统计
 * @return {object}
 */
export function memberAndEarningStatistics(params) {
  return request({
    url: '/authorEarning/memberAndEarningStatistics',
    method: 'get',
    data: params
  })
}

/**
 * @description: 解绑成员
 * @return {object}
 */
export function unlink(params) {
  return request({
    url: '/merchant/unlink',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取定制类产品价格
 * @return {object}
 */
export function makeChangePriceList(params) {
  return request({
    url: '/merchant/makeChangePriceList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 统一修改价格
 * @return {object}
 */
export function confirmArtworksPrice(params) {
  return request({
    url: '/merchant/confirmArtworksPrice',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取联系方式
 * @return {object}
 */
export function queryMerchantWeixinNumber(params) {
  return request({
    url: '/merchant/queryMerchantWeixinNumber',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取团队收益信息
 * @return {object}
 */
export function totalRevenue(params) {
  return request({
    url: '/authorEarning/totalRevenue',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取团队成员下级收益信息
 * @return {object}
 */
export function totalGroupRevenue(params) {
  return request({
    url: '/authorEarning/totalGroupRevenue',
    method: 'get',
    data: params
  })
}

/**
 * @description: 收益订单明细
 * @return {object}
 */
export function orderEarningDetailList(params) {
  return request({
    url: '/authorEarning/orderEarningDetailList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 团队成员下级收益订单明细
 * @return {object}
 */
export function groupOrderEarningDetailList(params) {
  return request({
    url: '/authorEarning/groupOrderEarningDetailList',
    method: 'get',
    data: params
  })
}
/**
 * @description: 我的订单
 * @return {object}
 */
export function getOrderList(params) {
  return request({
    url: '/vip/officeMemberOrder',
    method: 'post',
    data: params
  })
}
/**
 * @description: 订单聊天
 * @return {object}
 */
export function updataUserMemberOrder(params) {
  return request({
    url: '/vip/updataUserMemberOrder',
    method: 'post',
    data: params
  })
}
/**
 * @description: 获取自推订单收益
 * @return {object}
 */
export function myOrderEarningDetailList(params) {
  return request({
    url: '/authorEarning/myOrderEarningDetailList',
    method: 'post',
    data: params
  })
}

/**
 * @description: 创作者中心获取用户
 * @return {object}
 */
export function allAppGuideletList(params) {
  return request({
    url: '/applet/allAppGuideletList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取所有的字体
 * @return {object}
 */
export function allFontList(params) {
  return request({
    url: '/font/allFontList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取所有的字体
 * @return {object}
 */
export function textToImage(params) {
  return request({
    url: '/fontTemplat/textToImage',
    method: 'post',
    data: params
  })
}

/**
 * @description: 模板分类列表
 * @return {object}
 */
export function allArtFontTemplateCategory(params) {
  return request({
    url: '/fontTemplat/allArtFontTemplateCategory',
    method: 'get',
    data: params
  })
}

/**
 * @description: 创建模板
 * @return {object}
 */
export function createFontTemplate(params) {
  return request({
    url: '/fontTemplat/createFontTemplate',
    method: 'post',
    data: params
  })
}

/**
 * @description: 根据id获取模板详情
 * @return {object}
 */
 export function fontTemplateDetil(params) {
  return request({
    url: '/fontTemplat/fontTemplateDetil',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据id获取模板详情
 * @return {object}
 */
 export function fontTemplateList(params) {
  return request({
    url: '/fontTemplat/fontTemplateList',
    method: 'post',
    data: params
  })
}

/**
 * @description: 根据id获取模板详情
 * @return {object}
 */
 export function userTextTemplateArtworksCreate(params) {
  return request({
    url: '/artworks/userTextTemplateArtworksCreate',
    method: 'post',
    data: params
  })
}

/**
 * @description: 根据id获取模板详情
 * @return {object}
 */
export function batchAddTextTemplateArtworks(params) {
  return request({
    url: '/artworks/batchAddTextTemplateArtworks',
    method: 'post',
    data: params
  })
}

/**
 * @description: 根据id获取模板详情
 * @return {object}
 */
export function checkMaxUploadMax(params) {
  return request({
    url: '/artworks/checkMaxUploadMax',
    method: 'get',
  })
}

/**
 * @description: 根据id获取模板详情
 * @return {object}
 */
export function toolListByUserId(params) {
  return request({
    url: '/tool/toolListByUserId',
    method: 'get',
    data: params
  })
}

/**
 * @description: 创作者添加付费定制玩法列表
 * @return {object}
 */
export function makeToolListByToolType(params) {
  return request({
    url: '/tool/makeToolListByToolType',
    method: 'get',
    data: params
  })
}

/**
 * @description: 创作者添加付费定制玩法列表
 * @return {object}
 */
export function makePicCategoryList(params) {
  return request({
    url: '/tool/makePicCategoryList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据id获取模板详情
 * @return {object}
 */
export function batchCreateTool(params) {
  return request({
    url: '/tool/batchCreateTool',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取工具分类
 * @return {object}
 */
export function toolType() {
  return request({
    url: '/tool/toolType',
    method: 'get',
  })
}

/**
 * @description: 定制工具分类
 * @return {object}
 */
export function makeToolType() {
  return request({
    url: '/tool/makeToolType',
    method: 'get',
  })
}

/**
 * @description: 创作者添加玩法列表
 * @return {object}
 */
export function toolListByToolType(params) {
  return request({
    url: '/tool/toolListByToolType',
    method: 'get',
    data: params
  })
}

/**
 * @description: 设置作品标签
 * @return {object}
 */
export function setArtworksLabel(params) {
  return request({
    url: '/artworks/setArtworksLabel',
    method: 'post',
    data: params
  })
}

/**
 * @description: 图文模板添加标签
 * @return {object}
 */
export function makeTemplateAddArtworksLabel(params) {
  return request({
    url: '/artworks/makeTemplateAddArtworksLabel',
    method: 'post',
    data: params
  })
}

/**
 * @description: 添加公共图文模板
 * @return {object}
 */
export function addMakePublicTemplate(params) {
  return request({
    url: '/artworks/addMakePublicTemplate',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取标签列表
 * @return {object}
 */
export function artworksLabelList(params) {
  return request({
    url: '/artworks/artworksLabelList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 删除作品标签
 * @return {object}
 */
export function deleteArtworksLabel(params) {
  return request({
    url: '/artworks/deleteArtworksLabel',
    method: 'post',
    data: params
  })
}

/**
 * @description: 更新作品信息
 * @return {object}
 */
export function updateArtworks(params) {
  return request({
    url: '/artworks/updateArtworks',
    method: 'post',
    data: params
  })
}

/**
 * @description: 创建、编辑推荐资源
 * @return {object}
 */
export function createArtworksMaterialAlbum(params) {
  return request({
    url: '/client/artworksMaterialAlbum/create',
    method: 'post',
    data: params
  })
}

/**
 * @description: 推荐资源详情
 * @return {object}
 */
export function artworksMaterialAlbumInfoById(params) {
  return request({
    url: '/client/artworksMaterialAlbum/artworksMaterialAlbumInfoById',
    method: 'get',
    data: params
  })
}

/**
 * @description: 推荐资源详情列表
 * @return {object}
 */
export function artworksMaterialAlbumList(params) {
  return request({
    url: '/artworksMaterialAlbum/list',
    method: 'post',
    data: params
  })
}

/**
 * @description: 推荐资源详情
 * @return {object}
 */
export function materialAlbumDetailById(params) {
  return request({
    url: '/artworksMaterialAlbum/materialAlbumDetailById',
    method: 'get',
    data: params
  })
}


/**
 * @description: 批量添加资源
 * @return {object}
 */
export function batchAddArtAlbumWorks(params) {
  return request({
    url: '/artworksMaterialAlbum/batchAddArtAlbumWorks',
    method: 'post',
    data: params
  })
}
